package com.example.backend.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 文件下载结果对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class FileDownloadResult {
    private String fileName;
    private byte[] content;
    private String mimeType;
    private Long fileSize;
    private String downloadUrl;
    private boolean success;
    private String errorMessage;
    
    /**
     * 批量下载结果
     */
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    public static class BatchDownloadResult {
        private String zipFileName;
        private byte[] zipContent;
        private Long zipSize;
        private List<FileDownloadResult> files;
        private int successCount;
        private int failureCount;
        private int totalCount;
    }
}
